import 'package:flutter_elf/base/base_page_state.dart';
/// CreateTime 2020/6/29 11:19
/// CreateUser chen 
/// ProjectName flutter_elf
import 'package:flutter_elf/config/component_index.dart';
import 'package:flutter_elf/page/zefyr/full_page.dart';
import 'package:flutter_elf/page/zefyr/view.dart';

import 'form.dart';
///富文本编辑
class ZefyrPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return ZefyrPageState();
  }
}

class ZefyrPageState extends BasePageState<ZefyrPage>{
  @override
  Widget build(BuildContext context) {
    final nav = Navigator.of(context);
    return Scaffold(
      appBar: AppBar(title: FlutterLogo()),
      body: Column(
        children: <Widget>[
          Expanded(child: Container()),
          RaisedButton(
            onPressed: () => NavigatorUtils.navigatorRouter(context, FullPageEditorScreen()),
            child: Text('Full page editor'),
          ),
          RaisedButton(
            onPressed: () => NavigatorUtils.navigatorRouter(context, FormEmbeddedScreen()),
            child: Text('Embedded in a form'),
          ),
          RaisedButton(
            onPressed: () => NavigatorUtils.navigatorRouter(context, ViewScreen()),
            child: Text('Read-only embeddable view'),
          ),
          Expanded(child: Container()),
        ],
      ),
    );
  }
}